﻿#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int a = 3;
	int b = 5;
	printf("%d %d", a, b);
	a = a ^ b;
	b = a ^ b;
	a = a ^ b;
  printf("%d %d", a, b);
	return 0;
}

#include <stdio.h>
int main()
{
    int n = 0;
    scanf("%d", &n);
    int i = 0;
    int count = 0;
    for (i = 0; i < 32; i++)
    {
        if ((n >> i) & 1)
        {
            count++;
        }
    }

    printf("%d", count);
    return 0;
}
#include <stdio.h>
int main()
{
    int n = 0;
    scanf("%d", &n);
    int i = 0;
    for (i = 0; i < 32; i += 2)
    {
        printf("%d ", (n >> i) & 1);
    }

    printf("\n");
    for (i = 1; i < 32; i += 2)
    {
        printf("%d ", (n >> i) & 1);
    }
    return 0;
}